export const setStorage = (key, value) => {

	try {
		uni.setStorageSync(key, value);
		console.log('存储成功');
	} catch (e) {
		console.log('存储失败', e);
	}
}
export const getStorage = (key) => {
	let result = ''
	try {
		result = uni.getStorageSync(key) || '';
		return result
	} catch (e) {
		console.log('读取失败', e);
	}

	return result
}

export const removeStorage = (key) =>{
	try {
		uni.removeStorageSync(key);
	} catch (e) {
		// error
	}
}